package com.vehicle.mapper;

import com.vehicle.pojo.Car;
import com.vehicle.pojo.FeesRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FeesRecordMapper {
    /**
     * 查找所有规费信息
     * @return
     */
    public List<FeesRecord> selectAllFeesRecord(FeesRecord feesRecord);

    /**
     * 根据id查找车辆
     * @return
     */
    public Car selectCarById(@Param("carid") int carid);

    //删除  彻底删除 弃用
    @Deprecated
    public void deleteFeesRecordByFeesId(@Param("feesid") int feesid);

    /**
     * 删除，假删 更改状态
     * @param feesid
     */
    public void updateStatusByFeesId(@Param("feesid")int feesid);

    /**
     * 增加规费记录
     * @param feesRecord
     */
    public void addFeesRecord(FeesRecord feesRecord);

    /**
     * 修改规费信息
     * @param feesRecord
     */
    public void updateFeesRecord(FeesRecord feesRecord);
}
